package com.tomes.blockcanary;


import com.github.moduth.blockcanary.BlockCanaryContext;

/**
 * @author Cwugs.Chen.
 * @time 2016/8/30  20:23
 * @desc ${TODD}
 */
public class AppBlockCanaryContext extends BlockCanaryContext {
    //设置卡顿判断的阙值
    @Override
    public int getConfigBlockThreshold() {
        return 500;
    }

    // if set true, notification will be shown, else only write log file
    @Override
    public boolean isNeedDisplay() {
        return BuildConfig.DEBUG;
    }

    //设置log保存在sd卡的目录位置
    @Override
    public String getLogPath() {
        return "/tomesblockcanary";
    }


}
